import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询发音人类型列表
export function listSpeakerTypeInfo(query) {
  return request({
    url: '/speakerInfo/speakerType/selectSpeakerTypeList',
    method: 'get',
    params: query
  })
}


// 新增发音人类型
export function insertSpeakerType(data) {
  return request({
    url: '/speakerInfo/speakerType/insertSpeakerType',
    method: 'post',
    data: data
  })
}

//查询详情
export function selectSpeakerType(uid) {
  return request({
    url: '/speakerInfo/speakerType/selectSpeakerType/' + parseStrEmpty(uid),
    method: 'get',
  })
}



//删除发音人类型
export function deleteSpeakerType(data) {
  return request({
    url: '/speakerInfo/speakerType/deleteSpeakerType',
    method: 'post',
    data: data
  })
}



// 修改发音人类型信息
export function updateSpeakerType(data) {
  return request({
    url: '/speakerInfo/speakerType/updateSpeakerType',
    method: 'post',
    data: data
  })
}
